using System.ComponentModel;
using System.Windows.Forms;
using TShooter.TfsWord.Win.WizardSupport.Design;

namespace TShooter.TfsWord.Win.WizardSupport
{
	/// <summary>
	/// An inherited <see cref="InfoContainer"/> that contains a <see cref="Label"/> 
	/// with the description of the page.
	/// </summary>
	[Designer(typeof(InfoPageDesigner))]
	public partial class InfoPage : InfoContainer
	{
		private Label lblDescription;

		/// <summary>
		/// Default Constructor
		/// </summary>
		public InfoPage()
		{
			// This call is required by the Windows Form Designer.
			InitializeComponent();
		}

		/// <summary>
		/// Gets/Sets the text on the info page
		/// </summary>
		[Category("Appearance")]
		public string PageText
		{
			get
			{
				return lblDescription.Text;
			}
			set
			{
				lblDescription.Text = value;
			}
		}
	}
}

